import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import components from 'unplugin-vue-components/vite'
import autoImport from 'unplugin-auto-import/vite'
import { VarletUIResolver } from 'unplugin-vue-components/resolvers';
import path from 'path'
export default defineConfig({
  
  server: {
    host: true,
    port: 80
  },
  resolve: {
    alias: {
      '@': path.resolve(__dirname, './src')
    },
    extensions: [".mjs", ".js", ".ts", ".jsx", ".tsx", ".json"]
  },
  plugins: [vue(),
  components({
    resolvers: [VarletUIResolver()]
  }),
  autoImport({
    resolvers: [VarletUIResolver({ autoImport: true })]
  })
  ],
})
